package org.jeecg.modules.charge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.entity.charge.ChargeInvoice;

import java.util.List;

/**
 * @Description: 票据
 * @Author: jeecg-boot
 * @Date:   2019-08-08
 * @Version: V1.0
 */
public interface IChargeInvoiceService extends IService<ChargeInvoice> {
    public List<ChargeInvoice> getInvoicesByDm(String invoiceDm);
    public Integer  updateInvoices(ChargeInvoice invoice);
    //根据对应的票据号码和编号获取对应的ID
    public String  getIdByInvoice(String invoiceHm,String invoiceDm);

    public List<ChargeInvoice> getInvoicesByDmAll(String invoiceDm);

    public List<ChargeInvoice> getInvoicesByDmCharged(String invoiceDm, String endDate);

    public ChargeInvoice  getInvoiceDmHm(String invoiceHm,String invoiceDm);

    public List<ChargeInvoice>  getInvoice(ChargeInvoice invoice);

    /**票据作废*/
    public Integer scrap(ChargeInvoice invoice);

    /**根据ID查询票据*/
    public ChargeInvoice get(String id);

}
